﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test_calendar.aspx.cs" Inherits="test_calendar" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <p>
        选择时间1：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
    </p>
    <p>
        <asp:Calendar ID="Calendar1" runat="server" 
            onselectionchanged="Calendar1_SelectionChanged" SelectedDate="2017-12-01">
        </asp:Calendar>
    </p>
    <p>
        选择时间2：<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Button" />
    </p>
    <p>
        <asp:Calendar ID="Calendar2" runat="server" 
            onselectionchanged="Calendar2_SelectionChanged" SelectedDate="2017-12-01">
        </asp:Calendar>
    </p>
    <p>
        <asp:Button ID="Button3" runat="server" Text="预定" onclick="Button3_Click" />
    </p>
    <p>
        时间差：<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    </p>
    </form>
</body>
</html>
